﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LIMS.IDAL
{
    /// <summary>
    /// 定义登录接口
    /// By：田玉粮
    /// 2013.3.15
    /// </summary>
    public interface ILogin
    {

        #region 检查用户ID
        /// <summary>
        /// 检查指定ID是否属于管理员
        /// </summary>
        /// <param name="admin"></param>
        /// <returns></returns>
        Boolean Exists(LIMS.Model.Admins admin);

        /// <summary>
        /// 检查指定ID是否属于学生
        /// </summary>
        /// <param name="stu"></param>
        /// <returns></returns>
        Boolean Exists(LIMS.Model.Students student);

        /// <summary>
        /// 检查指定ID是否属于教师
        /// </summary>
        /// <param name="tea"></param>
        /// <returns></returns>
        Boolean Exists(LIMS.Model.Teachers teacher);

        #endregion

        #region 登录
        /// <summary>
        /// 管理员登录
        /// </summary>
        /// <param name="admin"></param>
        /// <returns></returns>
        //  LIMS.Model.Admins UserLogin(LIMS.Model.Admins admin);
        Boolean UserLogin(LIMS.Model.Admins admin);

        /// <summary>
        /// 学生登录
        /// </summary>
        /// <param name="student"></param>
        /// <returns></returns>
        //LIMS.Model.Students UserLogin(LIMS.Model.Students student);
       Boolean UserLogin(LIMS.Model.Students student);

        /// <summary>
        /// 教师登陆
        /// </summary>
        /// <param name="teacher"></param>
        /// <returns>登陆成功返回true</returns>
      //  LIMS.Model.Teachers UserLogin(LIMS.Model.Teachers teacher);
        Boolean UserLogin(LIMS.Model.Teachers teacher);
        #endregion

        #region 注销
        /// <summary>
        /// 管理员注销
        /// </summary>
        /// <param name="admin"></param>
        /// <returns></returns>
        bool UserLoginOut(LIMS.Model.Admins admin);

        /// <summary>
        /// 学生注销
        /// </summary>
        /// <param name="student"></param>
        /// <returns></returns>
        bool UserLoginOut(LIMS.Model.Students student);

        /// <summary>
        /// 教师注销
        /// </summary>
        /// <param name="teacher"></param>
        /// <returns></returns>
        bool UserLoginOut(LIMS.Model.Teachers teacher);
        #endregion

    }
}
